my file learn about tech container (docker, podman, kubernetes)
---
- name: Playbook setup web server
  hosts: node_docker
  become: true
  vars: # mendefinisikan variable
    user_app: ansibleweb
  tasks:
    - name: Install nginx
      ansible.builtin.apt:
        name: nginx
        state: present
    - name: Buat user 
      ansible.builtin.user:
        name: ""
        password: belajaransible
        shell: /bin/bash
    - name: Copy file html
      ansible.builtin.copy:
        src: ./web/
        dest: /var/www/html/
        mode: '644'
        owner: ""
        group: ""
ansible-playbook 03\ -\ playbook-wevserver_vars.yaml
ssh -i /ssh_node/private.key node1 ls -la /var/www/html/index.html
# -rw-r--r-- 1 ansibleweb ansibleweb 435 Jan  4 06:33 /var/www/html/index.html
ansible node_docker -m command -a "ls -la /var/www/html/index.html"
# node1 | CHANGED | rc=0 >>
# -rw-r--r-- 1 ansibleweb ansibleweb 435 Jan  4 06:33 /var/www/html/index.html
# node2 | CHANGED | rc=0 >>
# -rw-r--r-- 1 ansibleweb ansibleweb 435 Jan  4 06:33 /var/www/html/index.html
# node3 | CHANGED | rc=0 >>
# -rw-r--r-- 1 ansibleweb ansibleweb 435 Jan  4 06:33 /var/www/html/index.html
# list
region:
  - northeast
  - southeast
  - midwest
## mamnggil list
region: ""
# dictionary
foo:
  field1: one
  field2: two
## memanggil dictionary
# merged list
merged_list: ""
# merged dict
merged_dict: ""